<!DOCTYPE html>
<?php 
$controller = Yii::app()->controller->id;  
$action = $this->getAction()->getId(); 
$controlleraction = strtolower($controller.$action);
$controlleractionid = strtolower($controller.$action.(isset($_GET['p_gid'])?$_GET['p_gid']:''));
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn" dir="ltr" >
<head>
<meta http-equiv="X-UA-Compatible" content="IE=9">
  <base  />
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta name="author" content="Super User" />
  <meta name="generator" content="Joomla! - Open Source Content Management" />
  <title><?php echo CHtml::encode($this->pageTitle); ?></title>
  <link href="favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
  <link rel="stylesheet" href="/css/system.css" type="text/css" />
  <link rel="stylesheet" href="/css/fontface.css" type="text/css" />
  <script src="/js/mootools-core.js" type="text/javascript"></script>
  <script src="/js/core.js" type="text/javascript"></script>
  <script src="/js/caption.js" type="text/javascript"></script>
  <script src="/js/admin.js" type="text/javascript"></script>
  <script type="text/javascript" src="/js/jquery-1.8.0.min.js"></script>
  <link rel="stylesheet" href="/css/styles.css" type="text/css" />
  <style type="text/css">
	ul{margin-left:30px;}
  </style>
  <?php 	
        Yii::app()->clientScript->registerCoreScript('jquery');	
		Yii::app()->bootstrap->register();?>  
</head>

<body style="background: #EEEEEE center no-repeat  fixed">
<div id="page">
	
	<div id="social">
		<ul>
			<li>
				<a href="<?=Yii::app()->createUrl('site/index')?>">首页</a>
			</li>
			<li>|</li>
			<li>
				<a href="<?=Yii::app()->createUrl('site/aq')?>">常见问题</a>
			</li>
			<li>|</li>
			<li>
				<a href="<?=Yii::app()->createUrl('site/contactus')?>">联系我们</a>
			</li>
			<li>|</li>
			<li>
				<a href="http://www.hitewell.com">Group</a>
			</li>
		</ul>
		<div class="clear"></div>
		
			
	</div>
		
	<div id="logo"><a href="/"><img id="logo" src="/images/logo/logo.png" /></a></div>
	<div class="clear"></div>
	
	<div id="mainf" style="background: #FFFFFF">
	<div id="mainfr" style="background: #FFFFFF">
	<div id="top_menu">		
		<ul class="menu">
			<li class="<? if($controlleraction == 'siteaboutus'){echo 'active';}?>"><a href="<?=Yii::app()->createUrl('site/aboutus');?>">关于Hitewell</a>
				<ul>
					<li class="<? if($controlleraction == 'siteaboutus'){echo 'active';}?>"><a href="<?=Yii::app()->createUrl('site/aboutus');?>" ><img src = "/images/right.gif" />关于Hitewell</a></li>
					<li class="<? if($controlleraction == 'sitegroupintro'){echo 'active';}?>"><a href="<?=Yii::app()->createUrl('site/groupintro');?>" ><img src = "/images/right.gif" />集团介绍</a></li>
					<li class="<? if($controlleraction == 'zizhiindex'){echo 'active';}?>"><a href="<?=Yii::app()->createUrl('zizhi/index');?>" ><img src = "/images/right.gif" />公司资质</a></li>
					<!--li class="<? if($controlleraction == 'sitehitewellintro'){echo 'active';}?>"><a href="<?=Yii::app()->createUrl('site/hitewellintro');?>" ><img src = "/images/right.gif" />HiteWell公司介绍</a></li-->
				</ul>
			</li>
			<li class=""><a href="#" >行业应用</a>
				<ul>
					<li class="<? if($controlleraction == 'sitedianli'){echo 'active';}?>"><a href="<?=Yii::app()->createUrl('site/dianli');?>" ><img src = "/images/right.gif" />电力行业</a></li>
					<li class="<? if($controlleraction == 'siteshihua'){echo 'active';}?>"><a href="<?=Yii::app()->createUrl('site/shihua');?>" ><img src = "/images/right.gif" />石化</a></li>
					<li class="<? if($controlleraction == 'siteshuichuli'){echo 'active';}?>"><a href="<?=Yii::app()->createUrl('site/shuichuli');?>" ><img src = "/images/right.gif" />水处理</a></li>
					<!--li class="<? if($controlleraction == 'sitelianyou'){echo 'active';}?>"><a href="<?=Yii::app()->createUrl('site/lianyou');?>" ><img src = "/images/right.gif" />炼油</a></li-->
					<li class="<? if($controlleraction == 'sitegangtie'){echo 'active';}?>"><a href="<?=Yii::app()->createUrl('site/gangtie');?>" ><img src = "/images/right.gif" />钢铁</a></li>
					<li class="<? if($controlleraction == 'siteqita'){echo 'active';}?>"><a href="<?=Yii::app()->createUrl('site/qita');?>" ><img src = "/images/right.gif" />其他</a></li>
					<!--li class="<? if($controlleraction == 'sitezaozhi'){echo 'active';}?>"><a href="<?=Yii::app()->createUrl('site/zaozhi');?>" ><img src = "/images/right.gif" />造纸、制浆</a></li-->
					<!--li class="<? if($controlleraction == 'sitehedian'){echo 'active';}?>"><a href="<?=Yii::app()->createUrl('site/hedian');?>" ><img src = "/images/right.gif" />核电</a></li-->
				</ul>
			</li>	
			<li class=""><a href="<?=Yii::app()->createUrl('product/index');?>" >产品展示</a>
				<ul>
					<? 
						$category = Category::model()->findAll('c_isdel = 1');
						foreach($category as $c){
					?>
					<li class="<? if($controlleractionid == 'productindex'.$c->c_id){echo 'active';}?>"><a href="<?=Yii::app()->createUrl('product/index',array('p_gid'=>$c->c_id));?>" ><img src = "/images/right.gif" /><?=$c->c_name?></a></li>
					<?}?>
				</ul>
			</li>	
			<li class="<? if($controlleraction == 'newsindex'){echo 'active';}?>"><a href="<?=Yii::app()->createUrl('news/index');?>" >新闻中心</a></li>
			<li class="<? if($controlleraction == 'servicecenterindex'){echo 'active';}?>"><a href="<?=Yii::app()->createUrl('servicecenter/index');?>" >服务中心</a></li>
			<li class="<? if($controlleraction == 'downdetailindex'){echo 'active';}?>"><a href="<?=Yii::app()->createUrl('downdetail/index');?>" >下载中心</a></li>
			<li class="<? if($controlleraction == 'contactusindex'){echo 'active';}?>"><a href="<?=Yii::app()->createUrl('contactus/index')?>" >联系我们</a></li>
			<li style = "width:176px;">
				<div class="search">
					<form action = '<?=Yii::app()->createUrl('site/search');?>' method = 'get'>
						<input type="text" value="" name = 'keyword'/>
						<input type="submit" value="" />
						<div class="clear"></div>
					</form>
			  </div>
			</li>
		</ul>
	</div>	
	<div class="clear"></div>
	